import request from "@/libs/request";

export function findRandomWordList(data) {
  return request({
    url: "/word/api/other/findRandWordList",
    method: "post",
    data,
  });
}

export function findRandomNewWordList(data) {
  return request({
    url: "/word/api/other/findRandNewWordList",
    method: "post",
    data,
  });
}

export function deleteNewWord(data) {
  return request({
    url: "/word/api/other/deleteNewWord",
    method: "post",
    data,
  });
}

export function commitWordTest(data) {
  return request({
    url: "/word/api/other/wordTest",
    method: "post",
    data,
  });
}

export function wordMemoEdit(data) {
  return request({
    url: "/word/api/other/editMemo",
    method: "post",
    data,
  });
}

// 学习报告
export function getStudyData(data) {
  return request({
    url: "/word/api/report/getStudyDataDesc",
    method: "post",
    data,
  });
}

export function getLearnProgress() {
  return request({
    url: "/word/api/report/getLearnProgress",
    method: "post",
  });
}

export function findMemoOrNewWordList(data) {
  return request({
    url: "/word/api/other/findMemoOrNewWordList",
    method: "post",
    data,
  });
}

export function findMemoOrNewWordBookList(data) {
  return request({
    url: "/word/api/other/findMemoOrNewWordBookList",
    method: "post",
    data,
  });
}

export function findMyTestBooks(data) {
  return request({
    url: "/word/api/report/findMyTestBooks",
    method: "post",
    data,
  });
}

export function findMyTestRec(data) {
  return request({
    url: "/word/api/report/findMyTestRec",
    method: "post",
    data,
  });
}

// 单词领读
export function findReadChapterList(data) {
  return request({
    url: "/word/api/read/findChapterList",
    method: "post",
    data,
  });
}

export function findReadNextWord(data) {
  return request({
    url: "/word/api/read/findNextWord",
    method: "post",
    data,
  });
}

export function wordReadSave(data) {
  return request({
    url: "/word/api/read/save",
    method: "post",
    data,
  });
}

// 单词闯关
export function findPassChapterList(data) {
  return request({
    url: "/word/api/pass/findChapterList",
    method: "post",
    data,
  });
}

export function findPassNextWord(data) {
  return request({
    url: "/word/api/pass/findNextWord",
    method: "post",
    data,
  });
}

export function wordPassSave(data) {
  return request({
    url: "/word/api/pass/save",
    method: "post",
    data,
  });
}

export function wordPassTestCommit(data) {
  return request({
    url: "/word/api/pass/testCommit",
    method: "post",
    data,
  });
}

// 单词速记

export function findChooseChapterList(data) {
  return request({
    url: "/word/api/choose/findChapterList",
    method: "post",
    data,
  });
}

export function findNextWord(data) {
  return request({
    url: "/word/api/choose/findNextWord",
    method: "post",
    data,
  });
}

export function wordChooseSave(data) {
  return request({
    url: "/word/api/choose/save",
    method: "post",
    data,
  });
}

export function getNewCount() {
  return request({
    url: "/word/api/report/getNewCount",
    method: "post",
  });
}
